import request from '@/utils/request'


export function listPermission(query) {
  return request({
    url: '/file/information/listPermission',
    method: 'get',
    params: query
  })
}

//查询文件柜 树形
export function listFileTree(query) {
  return request({
    url: '/file/information/listFileTree',
    method: 'get',
    params: query
  })
}


// 查询文件柜维护列表
export function listInformation(query) {
  return request({
    url: '/file/information/list',
    method: 'get',
    params: query
  })
}

// 查询文件柜维护详细
export function getInformation(cabinetId) {
  return request({
    url: '/file/information/' + cabinetId,
    method: 'get'
  })
}

// 新增文件柜维护
export function addInformation(data) {
  return request({
    url: '/file/information',
    method: 'post',
    data: data
  })
}

// 修改文件柜维护
export function updateInformation(data) {
  return request({
    url: '/file/information',
    method: 'put',
    data: data
  })
}

// 删除文件柜维护
export function delInformation(cabinetId) {
  return request({
    url: '/file/information/' + cabinetId,
    method: 'delete'
  })
}
